package com.ideaction.globalconst;


import com.ideaction.game.globalconst.AbstractResult;

/**
 * @author ZGame 返回结果封装
 */
public class Result extends AbstractResult {
    
    private static final long serialVersionUID = 1L;
    
    public boolean isOk() {
        return get("Result") == null ? false : (boolean) get("Result");
    }
    
    public static Result build() {
        Result r = new Result(true);
        return r;
    }
    public static Result buildOnlyFalse() {
        Result r = new Result(false);
        return r;
    }
    
    public void putFalse(){
        put("Result", false);
    }
    
    public Result(boolean result) {
        put("Result", result);
    }
}
